import request from '@/utils/PHPrequest';

/**
 * 获取php团队列表
 * @param id
 */
export const getPhpDoctor = (query) => {
  return request({
    url: '/doctor.php/ajax/getTeamList',
    method: 'get',
    params: query
  });
};

/**
 * 添加php团队列表
 * @param id
 */
export const addteam = (data) => {
  return request({
    url: '/doctor.php/ajax/addTeam?authorization=' + data.authorization + '&clientid=' + data.clientid,
    method: 'post',
    data: data,
  });
};

/**
 * 修改php团队列表
 * @param id
 */
export const editTeam = (data) => {
  return request({
    url: '/doctor.php/ajax/editTeam?authorization=' + data.authorization + '&clientid=' + data.clientid,
    method: 'put',
    data: data,
  });
};
/**
 * 删除php团队列表
 * @param id
 */
export const phpdelDept = (deptId) => {
  return request({
    url: '/doctor.php/ajax/delTeam?authorization=' + deptId.authorization + '&clientid=' + deptId.clientid + '&Id=' + deptId.Id + '&deptId=' + deptId.deptId,
    method: 'delete'
  });
};

